package com.ruoyi.law.annotation;

import com.ruoyi.law.enums.ReturnStrategyEnum;

import java.lang.annotation.*;

/**
 * 返回策略
 *
 * @author lie
 * @date 2022/12/15
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ReturnStrategy {


    /**
     * 返回策略
     *
     * @return {@link ReturnStrategyEnum}
     */
    ReturnStrategyEnum returnStrategy() default ReturnStrategyEnum.ONCE;

}
